import request from '@/utils/request'
export default {
  //生成订单
  createOrders(courseId) {
    return request({
      url: `/eduorder/order/createOrder/${courseId}`,
      method: 'post'
    })
  },
  //根据id查询订单信息
  getOrderInfo(id) {
    return request({
      url: `/eduorder/order/getOrderInfo/${id}`,
      method: 'get'
    })
  },
  //生成二维码的方法
  createNative(orderNo){
    return request({
      url: `/eduorder/pay-log/createNative/${orderNo}`,
      method: 'get'
    })
  },
  //查询订单的方法
  queryPayStatus(orderNo){
    // console.log(orderNo)
    return request({
      url: `/eduorder/pay-log/queryStatus/${orderNo}`,
      method: 'get',
    })
  }
}
